<?php

namespace app\admin\model;

use app\admin\model\course\Info;
use think\Model;


class Userscorelog extends Model
{





    // 表名
    protected $name = 'user_score_log';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $deleteTime = false;


    public function User()
    {
        return $this->belongsTo('User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function Merchant()
    {
        return $this->belongsTo(\app\admin\model\merchant\User::class, 'merchant_user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
